Quarto Basics

Animated Gapminder Data

For a demonstration of plot that we animate to view evolution over time, see Figure 1.

Code
import plotly.express as px
df = px.data.gapminder()
px.scatter(df, x="gdpPercap", y="lifeExp", animation_frame="year", animation_group="country",
           size="pop", color="continent", hover_name="country",
           log_x=True, size_max=55, range_x=[100,100000], range_y=[25,90])
(a) Animation of the Gapminder Dataset
(b)
Figure 1